<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改离疆申请流程状态对象')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-process-edit" th:object="${appInfoProcess}">
            <input name="id" th:field="*{id}" type="hidden">
            <fieldset>
                <legend>申请信息</legend>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">申请人姓名：</label>
                <div class="col-sm-8">
                    <input disabled="disabled" name="applicationInfo.xm" th:field="*{applicationInfo.xm}" class="form-control" type="text" required>
                </div>
            </div>

            <div class="form-group">
            	<label class="col-sm-3 control-label">申请人性别：</label>
            	<div class="col-sm-8">
            		<select disabled="disabled"  name="applicationInfo.xb" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}" required>
            			<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{applicationInfo.xb}"></option>
            		</select>
            	</div>
            </div>
            <div class="form-group">
            	<label class="col-sm-3 control-label is-required">申请人手机号码：</label>
            	<div class="col-sm-8">
            		<input disabled="disabled"  name="sjhm" th:field="*{applicationInfo.sjhm}" class="form-control" type="text" required>
            	</div>
            </div>
            <div class="form-group">
            	<label class="col-sm-3 control-label is-required">人员类型：</label>
            	<div class="col-sm-8">
					<select disabled="disabled" name="sfjn" class="form-control m-b" th:with="type=${@dict.getType('b_rylx')}" required>
            			<option value="">未选择</option>
            			<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
            		</select>
            	</div>
            </div>
            <div class="form-group">
            	<label class="col-sm-3 control-label">近3天是否有发热、咳嗽等症状：</label>
            	<div class="col-sm-8">
            		<select disabled="disabled" name="styc" class="form-control m-b" th:with="type=${@dict.getType('sys_yes_no')}" required>
            			<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
            			th:field="*{applicationInfo.styc}"></option>
            		</select>
            	</div>
            </div>
            <div class="form-group">
            	<label class="col-sm-3 control-label is-required">证件号码：</label>
            	<div class="col-sm-8">
            		<input disabled name="zjhm" th:field="*{applicationInfo.zjhm}" class="form-control" type="text" required>
            	</div>
            </div>
            <div class="form-group">
            	<label class="col-sm-3 control-label">证件类型：</label>
            	<div class="col-sm-8">
            		<select disabled name="zjlx" class="form-control m-b" th:with="type=${@dict.getType('b_zjlx')}" required>
            			<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
            			th:field="*{applicationInfo.zjlx}"></option>
            		</select>
            	</div>
            </div>
            <div class="form-group">
            	<label class="col-sm-3 control-label">入乌日期：</label>
            	<div class="col-sm-8">
            		<div class="input-group date">
            		    <!--<input name="zjhm" th:field="*{applicationInfo.rwrq}" class="form-control" type="text" required>-->
            			<input disabled name="rwrq" th:value="${#dates.format(appInfoProcess.applicationInfo.rwrq, 'yyyy-MM-dd')}"
            			class="form-control" placeholder="yyyy-MM-dd" type="text" required>
            			<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
            		</div>
            	</div>
            </div>
            <div class="form-group">
            	<label class="col-sm-3 control-label control-label">暂住所类型：</label>
            	<div class="col-sm-8">
            		<select disabled name="zzslx" class="form-control m-b" th:with="type=${@dict.getType('b_zzslx')}" required>
            			<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue} "
            			th:field="*{applicationInfo.zzslx}"></option>
            		</select>
            	</div>
            </div>

            <div class="form-group">
            	<label class="col-sm-3 control-label is-required">房间号：</label>
            	<div class="col-sm-8">
            		<input disabled name="by1" th:field="*{applicationInfo.by1}" class="form-control" type="text" required>
            	</div>
            </div>

			<div class="form-group">
				<label class="col-sm-3 control-label">所属社区：</label>
				<div class="col-sm-8">
					<div class="input-group">
						<input disabled class="form-control" type="text" name="sqName" onclick="selectDeptTree()" id="sqName"
							   th:field="*{applicationInfo.sqName}" required>
						<input disabled name="sqCode" id="sqCode" type="hidden">
						<span class="input-group-addon"><i class="fa fa-search"></i></span>
					</div>
					<script type="text/javascript">
                        /* 选择部门树 */
                        function selectDeptTree() {
                            /*var treeId = $("#treeId").val();
                            var deptId = $.common.isEmpty(treeId) ? "100" : $("#treeId").val();*/
                            var deptId="100";
                            var url = ctx + "system/dept/selectDeptTree/" + deptId;
                            var options = {
                                title: '选择部门',
                                width: "380",
                                url: url,
                                callBack: doSubmit
                            };
                            $.modal.openOptions(options);
                        };
                        function doSubmit(index, layero){
                            var tree = layero.find("iframe")[0].contentWindow.$._tree;
                            if ($.tree.notAllowParents(tree)) {
                                var body = layer.getChildFrame('body', index);
                                $("#sqCode").val(body.find('#treeId').val());
                                $("#sqName").val(body.find('#treeName').val());
                                layer.close(index);
                            }
                        }
					</script>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">详细地址：</label>
				<div class="col-sm-8">
					<textarea disabled name="xxdz" class="form-control" required>[[*{applicationInfo.xxdz}]]</textarea>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">离乌方式：</label>
				<div class="col-sm-8">
					<select disabled name="lwfs" class="form-control m-b" th:with="type=${@dict.getType('b_jtfs')}" required>
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
								th:field="*{applicationInfo.lwfs}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">车牌号码：</label>
				<div class="col-sm-8">
					<input disabled name="cphm" th:field="*{applicationInfo.cphm}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">预期离乌日期：</label>
				<div class="col-sm-8">
					<div class="input-group date">
						<input disabled name="yqlwrq" th:value="${#dates.format(appInfoProcess.applicationInfo.yqlwrq, 'yyyy-MM-dd')}"
							   class="form-control" placeholder="yyyy-MM-dd" type="text" required>
						<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">返程目的地：</label>
				<div class="col-sm-8">
					<input disabled name="fcmdd" th:field="*{applicationInfo.fcmdd}" class="form-control" type="text" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">具有核酸检测报告：</label>
				<div class="col-sm-8">
					<select disabled name="hsjc" class="form-control m-b" th:with="type=${@dict.getType('sys_yes_no')}" required>
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
								th:field="*{applicationInfo.hsjc}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">个人检测日期：</label>
				<div class="col-sm-8">
					<div class="input-group date">
						<input disabled name="hsjcRq" th:value="${#dates.format(appInfoProcess.applicationInfo.hsjcRq, 'yyyy-MM-dd')}"
							   class="form-control" placeholder="yyyy-MM-dd" type="text">
						<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">做过双抗检测：</label>
				<div class="col-sm-8">
					<select disabled name="skjc" class="form-control m-b" th:with="type=${@dict.getType('sys_yes_no')}" required>
						<option value="">未选择</option>
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">双抗检测日期：</label>
				<div class="col-sm-8">
					<div class="input-group date">
						<input disabled name="applicationInfo.skjcRq" th:value="${#dates.format(appInfoProcess.applicationInfo.skjcRq, 'yyyy-MM-dd')}"
							   class="form-control" placeholder="yyyy-MM-dd" type="text">
						<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
					</div>
				</div>
			</div>
            </fieldset>
            <fieldset>
                <legend>处理意见</legend>
            <div class="form-group">
                <label class="col-sm-3 control-label">流程状态：</label>
                <div class="col-sm-8">
                    <select name="lczt" class="form-control m-b" th:with="type=${@dict.getType('b_spzt')}" required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                        th:field="*{lczt}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">处理意见：</label>
                <div class="col-sm-8">
                    <textarea name="clyj" class="form-control">[[*{clyj}]]</textarea>
                </div>
            </div>
            </fieldset>
            <!--<div class="form-group">
                <label class="col-sm-3 control-label is-required">业务对象id：</label>
                <div class="col-sm-8">
                    <input name="ywdxId" th:field="*{ywdxId}" class="form-control" type="text" required>
                </div>
            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "sp/process";
        $("#form-process-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-process-edit').serialize());
            }
        }
    </script>
</body>
</html>